//
// Created by 14590 on 25-9-2.
//

#ifndef SYSTEM_H
#define SYSTEM_H

#include "lcd_driver.h"
#include "key_driver.h"



/**
320*240 默认使用 2412 字体
每行占32像素
字符起始像素：Row*32,Col*12
*/
typedef struct {
    int16_t Row;
    int16_t Col;
}LCD_Point_t;

typedef struct {
    LCD_Point_t Coord;
    int32_t Value;
    uint8_t Len;
}Varint_t;

typedef struct {
    LCD_Point_t Coord;
    int32_t Value;
    uint8_t Len;
}Varfloat_t;

typedef struct {
    LCD_Point_t Coord;
    uint16_t Flag;
}Cursor_t;
enum {
    homepage,
    menu,
    syscfg,
    paraset,
    calimode,
    compmode,
};
extern Cursor_t Cursor;
extern uint8_t PageType;
extern osSemaphoreId_t PageSwSemBinaryHandle;

void LCD_Setting();
#endif //SYSTEM_H
